import { RouteObject } from "react-router-dom";

export interface RouteMeta {
  requiresAuth?: boolean;  // 是否需要登录
  title?: string;          // 页面标题
  roles?: string[];        // 权限角色
}

export type AppRouteObject = RouteObject & {
  meta?: RouteMeta;
  children?: AppRouteObject[];
};